//
//  CommandsMenu.swift
//  GitTFGUI
//
//  Created by Samuel Richard Magny on 15-10-03.
//  Copyright © 2015 Samuel Richard Magny. All rights reserved.
//

import Cocoa

class CommandsMenu: NSMenu {
    
    static let CloneTag = 1
    static let CommitTag = 2
    static let CheckinTag = 3
    static let PullTag = 4
    static let FetchTag = 5
    
    
    func commitMenuItem() -> NSMenuItem?
    {
        return itemWithTag(CommandsMenu.CommitTag)
    }
    
    func cloneMenuItem() -> NSMenuItem?
    {
        return itemWithTag(CommandsMenu.CloneTag)
    }
    
    func checkinMenuItem() -> NSMenuItem?
    {
        return itemWithTag(CommandsMenu.CheckinTag)
    }
    
    func pullMenuItem() -> NSMenuItem?
    {
        return itemWithTag(CommandsMenu.PullTag)
    }
    
    func fetchMenuItem() -> NSMenuItem?
    {
        return itemWithTag(CommandsMenu.FetchTag)
    }
    
}
